package day7;

public class D7_2 {
    public static void main(String[] args) {
    Girlfriend girlfriend=new Girlfriend();
    girlfriend.name="张风";
    girlfriend.height=155.0;
    girlfriend.weight=130.0;
    girlfriend.show();
    girlfriend.wash();
    girlfriend.cook();
    }
}
class Girlfriend{
    String name;
    double height;
    double weight;
    public void cook(){System.out.println("女朋友帮我做饭。");}
    public void wash(){System.out.println("女朋友帮我洗衣服。");}
    public void show(){
        System.out.println("我女朋友叫"+ name +"身高"+height+"厘米,体重"+weight+"斤");
    }
}
